package model

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ UmsPermissionModel = (*customUmsPermissionModel)(nil)

type (
	// UmsPermissionModel is an interface to be customized, add more methods here,
	// and implement the added methods in customUmsPermissionModel.
	UmsPermissionModel interface {
		umsPermissionModel
	}

	customUmsPermissionModel struct {
		*defaultUmsPermissionModel
	}
)

// NewUmsPermissionModel returns a model for the database table.
func NewUmsPermissionModel(conn sqlx.SqlConn, c cache.CacheConf) UmsPermissionModel {
	return &customUmsPermissionModel{
		defaultUmsPermissionModel: newUmsPermissionModel(conn, c),
	}
}
